home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-02 / fgl110c.zip / 03-06.C < prev    next >
Text File  |  1992-01-31  |  471b  |  27 lines

  1. #include <fastgraf.h>
  2. #include <stdio.h>
  3. #include <stdlib.h>
  4.  
  5. void main(void);
  6.  
  7. void main()
  8. {
  9.    int mode;
  10.  
  11.    if (fg_egacheck() < 2) {
  12.       printf("This program requires an Enhanced Graphics Adapter\n");
  13.       printf("(EGA) and an Enhanced Color Display (ECD).\n");
  14.       exit(1);
  15.       }
  16.  
  17.    mode = fg_getmode();
  18.    fg_setmode(16);
  19.  
  20.    fg_setcolor(15);
  21.    fg_text("Hello, world.",13);
  22.    fg_waitkey();
  23.  
  24.    fg_setmode(mode);
  25.    fg_reset();
  26. }
  27.